/*
 * @Author: your name
 * @Date: 2020-01-04 19:56:22
 * @LastEditTime : 2020-01-06 01:00:24
 * @LastEditors  : Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /nest-app/src/app.controller.ts
 */
import {
  Controller,
  Get,
  UseInterceptors,
  CacheInterceptor,
} from '@nestjs/common';
import { AppService } from './app.service';
import { ApiTags } from '@nestjs/swagger';

@Controller()
@ApiTags('默认')
export class AppController {
  constructor(private readonly appService: AppService) {}

  @Get()
  @UseInterceptors(CacheInterceptor)
  getHello(): string {
    return this.appService.getHello();
  }
}
